Skip to content

Only probe the MCP server URL once it looks complete - #1815

Merged
RhysSullivan merged 1 commit into
mainfrom
issue-1762
Aug 28, 2026
Merged

Only probe the MCP server URL once it looks complete#1815
RhysSullivan merged 1 commit into
mainfrom
issue-1762

Conversation

@RhysSullivan

Copy link
Copy Markdown
Collaborator

Fixes #1762

The Server URL field auto-probes after a 400ms pause, and the only condition on that probe was a non-empty trimmed string — so every pause in typing dialled the partial value ("h", "http://", the "a" in "http://a") and dropped the field into a loading and then an error state. The probe now runs only when the value parses as an http(s) URL whose hostname is a local development host or has a dot with a label on each side. The debounce is unchanged, so a completed URL is still probed without the user having to submit.

Editing the URL also invalidates any probe already in flight, so a superseded reply is discarded instead of reporting on a value that is no longer in the field. The probe atom exposes no abort signal, so the request still finishes; only its answer is ignored.

A new e2e scenario covers the reported behaviour: it fails on the current code with the "Try again" affordance visible for a half-typed URL, and passes with this change while still probing a finished one.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing 2e532f9 Commit Preview URL

Branch Preview URL
Aug 28 2026, 08:21 AM

@github-actions

github-actions Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Cloudflare preview

Torn down — the PR is closed.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud 2e532f9 Aug 28 2026, 08:22 AM

@pkg-pr-new

pkg-pr-new Bot commented Aug 28, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@1815

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@1815

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@1815

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@1815

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@1815

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@1815

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@1815

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@1815

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@1815

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@1815

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@1815

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@1815

executor

npm i https://pkg.pr.new/executor@1815

commit: 2e532f9

@RhysSullivan
RhysSullivan marked this pull request as ready for review August 28, 2026 18:13
@RhysSullivan
RhysSullivan merged commit 4b0fbf6 into main Aug 28, 2026
44 checks passed
@RhysSullivan RhysSullivan mentioned this pull request Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid validating remote MCP server URLs while they are being typed

1 participant